Logic buffer for hitless single event upset handling

ABSTRACT

Methods and systems for handling a single event upset. The methods include, and/or the systems include functionality for, receiving, from a monitored device, data at a first input of an initial state change device; detecting, based on receiving the data, a state change; asserting, based on detecting the state change, an initial state change device enable signal; transferring the first data from the first input to a first output of the initial state change device (which may be operatively connected to a second input of a state hold device); triggering, based on detecting the state change, a delay counter; making a determination that the delay period counted by the delay counter expired without receipt of an error detection signal; and based on the determination, asserting a state hold device enable signal to allow the data to pass from the second input to a second output of the state hold device.

BACKGROUND

Electronic devices that include certain types of data storage elements(e.g., static random access memory (SRAM)) may be susceptible tounexpected state changes. For example, a particle (e.g., ion, electron,photon, etc.) may cause a single event upset (SEU) when striking aportion of SRAM of a device, which may cause the value of a logical bitto change (e.g., from a 0 to a 1). Such unexpected state changes mayalter the expected logical operation of a device, which may cause thedevice to malfunction in some way.

SUMMARY

In general, in one aspect, the invention related to a method forhandling a single event upset (SEU). In one or more embodiments of theinvention, the method includes receiving, from a monitored device, afirst data at a first input of an initial state change device;detecting, based on receiving the first data, a first state change; andasserting, based on detecting the first state change, an initial statechange device enable signal. In one or more embodiments of theinvention, the method also includes transferring the first data from thefirst input to a first output of the initial state change device. In oneor more embodiments of the invention, the first output is operativelyconnected to a second input of a state hold device. In one or moreembodiments of the invention, the method also includes triggering, basedon detecting the first state change, a delay counter to count a delayperiod; making, by a validation engine, a first determination that thedelay period counted by the delay counter has expired without receipt ofan error detection signal; and based on the first determination,asserting a state hold device enable signal to allow the first data topass from the second input to a second output of the state hold device.

In general, in one aspect, the invention related to a system forhandling a single event upset (SEU). In one or more embodiments of theinvention, the system includes a monitored device comprising staticrandom access memory (SRAM) that includes stored logic. In one or moreembodiments of the invention, the system also includes an initial statechange device operatively connected to the monitored device. In one ormore embodiments of the invention, the initial state change deviceincludes a first input and a first output, and is configured to receivea first data from the monitored device at the first input. In one ormore embodiments of the invention, the system also includes a state holddevice that includes a second input and a second output. In one or moreembodiments of the invention, the second input is operatively connectedto the first output. In one or more embodiments of the invention, thesystem also includes a delay counter configured to count a delay period,and the state comparator operatively connected to the first input, theinitial state change device enable input of the initial state changedevice, and the delay counter. In one or more embodiments of theinvention, the state comparator is configured to detect, based receivingthe first data, a first state change; assert, based on detecting thefirst state change, an initial state change device enable signal for theinitial state change device to transfer the first data from the firstinput to the first output; and trigger, based on detecting the firststate change, the delay counter to count the delay period. In one ormore embodiments of the invention, the system also includes a validationengine operatively connected to the monitored device, the delay counter,and the state hold device. In one or more embodiments of the invention,the validation engine is configured to make a first determination thatthe delay period counted by the delay counter expired without receipt, bthe validation engine, of an error detection signal from the monitoreddevice; and based on the first determination that no error detectionsignal was received during the delay period, assert a state hold deviceenable signal to allow the first data to pass from the second input tothe second output of the state hold device.

In general, in one aspect, the invention related to a system forhandling a single event upset (SEU). In one or more embodiments of theinvention, the system includes a monitored device that includes staticrandom access memory (SRAM) including stored logic. In one or moreembodiments of the invention, the system also includes an initial statechange device operatively connected to the monitored device. In one ormore embodiments of the invention, the initial state change deviceincludes a first input and a first output, and is configured to receivea first data from the monitored device at the first input. In one ormore embodiments of the invention, the system also includes a state holddevice that includes a second input and a second output. In one or moreembodiments of the invention, the second input is operatively connectedto the first output. In one or more embodiments of the invention, thesystem also includes a delay counter configured to receive a first loadsignal from the monitored device when a first state change occurs; andcount a delay period after receiving the first load signal. In one ormore embodiments of the invention, the system also includes a validationengine operatively connected to the monitored device, the delay counter,and the state hold device. In one or more embodiments of the invention,the validation engine is configured to make a first determination thatthe delay period counted by the delay counter expired without receipt,by the validation engine, of an error detection signal from themonitored device; and based on the first determination, assert a statehold device enable signal to allow the first data to pass from thesecond input to the second output of the state hold device.

Other aspects of the invention will be apparent from the followingdescription and the appended claims.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 shows a system in accordance with one or more embodiments of theinvention.

FIG. 2 shows a system in accordance with one or more embodiments of theinvention.

FIG. 3 shows a flowchart in accordance with one or more embodiments ofthe invention.

FIG. 4 shows an example in accordance with one or more embodiments ofthe invention.

FIG. 5 shows an example in accordance with one or more embodiments ofthe invention.

DETAILED DESCRIPTION

Specific embodiments will now be described with reference to theaccompanying figures. In the following description, numerous details areset forth as examples of the invention. It will be understood by thoseskilled in the art, and having the benefit of this Detailed Description,that one or more embodiments of the present invention may be practicedwithout these specific details and that numerous variations ormodifications may be possible without departing from the scope of theinvention. Certain details known to those of ordinary skill in the artare omitted to avoid obscuring the description.

In the following description of the figures, any component describedwith regard to a figure, in various embodiments of the invention, may beequivalent to one or more like-named components described with regard toany other figure. For brevity, descriptions of these components will notbe repeated with regard to each figure. Thus, each and every embodimentof the components of each figure is incorporated by reference andassumed to be optionally present within every other figure having one ormore like-named components, Additionally, in accordance with variousembodiments of the invention, any description of the components of afigure is to be interpreted as an optional embodiment, which may beimplemented in addition to, in conjunction with, or in place of theembodiments described with regard to a corresponding like-namedcomponent in any other figure.

Throughout the application, ordinal numbers (e.g., first, second, third,etc.) may be used as an adjective for an element (i.e., any noun in theapplication). The use of ordinal numbers is not to imply or create anyparticular ordering of the elements nor to limit any element to beingonly a single element unless expressly disclosed, such as by the use ofthe terms “before”, “after”, “single”, and other such terminology.Rather, the use of ordinal numbers is to distinguish between theelements. By way of an example, a first element is distinct from asecond element, and the first element may encompass more than oneelement and succeed (or precede) the second element in an ordering ofelements.

In general, embodiments of the invention relate to a system and methodfor validating state changes of a monitored device using an errordetection signal and various circuit components. Specifically, in one ormore embodiments of the invention, when a state change of a device isdetected, a delay counter starts counting a delay period during whichthe previous state output of the monitored device is held, and thedevice for which the state change is detected is monitored to determinewhether an error detection signal occurs during the delay period.Examples of a detected state change include, but are not limited to, achange in one or more signals from a monitored device, a certain numberof bits being transferred into a shift register from the monitoreddevice, etc.

In one or more embodiments of the invention, if no error detectionsignal is received during the delay period, the previous state isenabled to change to the new state and propagated to other devices(e.g., other components of a network device). In one or more embodimentsof the invention, if an error detection signal is received during thedelay period, the previous state is held, the new state is notpropagated to other devices, and an alert is sent to an appropriateentity (e.g., a processor of a network device) notifying the entity ofthe received error detection signal.

FIG. 1 shows a system in accordance with one or more embodiments of theinvention. As shown in FIG. 1, the system includes a network device(100). The network device (100) may include a monitored device (102), alogic device (104), a controlled device (134), a network deviceprocessor (128), a network device memory (130), and a network devicestorage (132). The logic device (104) may include an initial statechange device (106), a state hold device (108), a state comparator(114), a delay counter (118), and a validation engine (120). Each ofthese components is described below.

In one or more embodiments of the invention, a network device (100) maybe a physical device that includes persistent storage (e.g., networkdevice storage (132)), memory (e.g., random access memory (RAM), sharedmemory) (e.g., network device memory (130)), one or more processor(s)(e.g., integrated circuits such as, for example, a switch chip (notshown), a network data unit processor (not shown and/or network deviceprocessor (128)), and two or more physical network interfaces or ports(not shown). The switch chip (e.g., an application specific integratedcircuit (ASIC)) or network data unit processor may be hardware thatdetermines out of which egress port on the network device (100) toforward data units such as, for example, media access control (MAC)frames that may include Internet Protocol (IP) packets. The switch chipor network data unit processor may include egress and ingress ports thatmay connect to physical network interfaces or ports on the networkdevice (100). Further, each physical network interface or port may ormay not be connected to another component (e.g., a computing device (notshown)) or to another network device (not shown) in a network (notshown).

A network device (100) may be configured to receive data units via thenetwork interfaces or ports, and determine whether to: (i) drop the dataunit; (ii) process the data unit in accordance with one or moreembodiments of the invention; and/or (iii) send the data unit, based onthe processing, out another network interface or port on the networkdevice (100) in accordance with one or more embodiments of theinvention.

In one or more embodiments of the invention, the network device (100)may also include software and/or firmware stored in the network devicestorage (132) and/or the network device memory (130) that includeinstructions which, when executed by the network device processor (128),cause the network device processor to perform operations in accordancewith one or more embodiments of the invention. As a non-limitingexample, the network device processor (128) may include functionality toreceive alerts (e.g., alert (126)) from various elements of the networkdevice (e.g., a validation engine (120), described below) and processthe alert (126) based on software instructions stored in the networkdevice storage (132) and/or the network device memory (130). Thefunctionally of a network device (100) is not limited to theaforementioned examples. Examples of a network device (100) include, butare not limited to, a switch, a router, and a multilayer switch. Anetwork device (100) is not limited to the aforementioned specificexamples. One having ordinary skill in the art, and the benefit of thisDetailed Description, will appreciate that embodiments described hereinmay or may not be in the context of a network device, and may instead beimplemented for any monitored device controlling a controlled devicewhere the monitored device may be susceptible to SEUs.

In one or more embodiments of the invention, a network device (100)includes a monitored device (102). In one or more embodiments of theinvention, the monitored device (102) includes hardware (e.g.,circuitry) and programmed logic stored in data storage (not shown) ofthe monitored device (102). For example, logic may be stored in one ormore types of SRAM included M the monitored device, such as block RAMand/or configuration RAM. Examples of a monitored device (102) include,but are not limited to, a field programmable gate array (FPGA), acomplex programmable logic device (CPLD), a microcontroller, otherdevices types with memory capable of being programmed with device logicfor performing various operations, and/or any combinations thereof.Though FIG. 1 shows an embodiment of the invention that includes onemonitored device (102), a network device (100) may include any number ofmonitored devices without departing from the scope of the invention.

In one or more embodiments of the invention, a monitored device (102) isany device that includes a form of data storage (e.g., SRAM) (not shown)that is susceptible to unexpected state changes caused by single eventupsets (SEUs). In one or more embodiments of the invention, a SEU is astate change caused by the collision of a particle with a sensitiveportion (e.g., memory such as SRAM) of a monitored device. SEUs may becaused by various particles, such as ions, electrons, photons, etc.,that may be considered energetic. Such particles may, for example,result from radiation, cosmic rays, etc. On occasion, such particles maycollide with susceptible portions of a monitored device (e.g., the SRAM)and cause an unexpected change in the state and/or operation of themonitored device.

In one or more embodiments of the invention, a monitored device (102)includes functionality to control the operation of one or more othercomponents of a network device (100), which may be referred to ascontrolled devices (134). As an example of controlled devices (134), anetwork device (100) may include any number of light emitting diodes(LEDs) that provide information to an observer via the presence, color,or changing character of emitted light, which may be controlled by amonitored device (102). As another example, a network device (100) mayinclude any number of optical transceivers for network device interfacesthat may be reset based on a state output by a monitored device (102).Similarly, as another example, a network device (100) may include anynumber of network device chips (e.g., switch chips) for processingincoming and/or outgoing data units (e.g., packets, frames, etc.), andthe reset function of one or more such network device chips may becontrolled by a monitored device (102). Types of controlled devices(134) are not limited to the preceding examples.

In one or more embodiments of the invention, a monitored device includesfunctionality to output one or more signals (e.g., input-output (TO)signal A (110), IO signal B (112)), and the one or more signals mayrepresent a state output by the monitored device (102). Though FIG. 1shows an embodiment of the invention in which a monitored device (102)outputs two such signals, a monitored device (102) may output any numberof signals without departing from the scope of the invention. In one ormore embodiments of the invention, signals (e.g., TO signal A (110), IOsignal B (112)) serve to control, at least in part, some aspect of theoperation and/or state of one or more controlled devices to which themonitored device is operatively connected (e.g., via connections to andfrom a logic device (104)).

In one or more embodiments of the invention, a monitored device (102)also includes functionality to perform error detection and, if an erroris detected, output an error detection signal (124). In one or moreembodiments of the invention, an error detection signal is any signalthat indicates that a monitored device (102) has experienced an error(e.g., a fatal error). One non-limiting example of such an errordetection signal (124) is a cyclic redundancy check (CRC) signal. In oneor more embodiments of the invention, a CRC signal is a signal that isasserted (i.e., output from a monitored device) when an error isdetected in the logic of the monitored device (102). For example, a CRCmay loop through the contents of stored logic (e.g., logic stored inSRAM) of a monitored device (102), performing a validation that thevalues included therein match expected values (e.g., by performing somemathematical operation on the data and comparing the result with anexpected result of performing the operation on the data).

In one or more embodiments of the invention, the CRC loop through thelogic of a monitored device (102) takes some amount of time, and, if anerror is encountered, a CRC signal indicating the detected error (e.g.,the error detection signal (124)) is not asserted until the loop hascompleted. In such embodiments, during the time between when the erroroccurs, and when the error detection signal (124) (e.g., the CRC signal)is asserted, the monitored device (102) may be outputting an unexpectedand/or unintended state, which may cause unintended actions or operationof one or more controlled devices that the monitored device is intendedto control. For example, if the monitored device (102) is controllingthe reset functionality of a switch chip (e.g., a controlled device(134)), then one or more unintended signals (e.g., IO signal A (110), 10signal B (112)) being output from the monitored device may cause theswitch chip to unexpectedly reset, thereby causing a potential drop ofnetwork traffic that is being processed by the switch chip.

In one or more embodiments of the invention, the monitored device (102)is operatively connected to a logic device (104). In one or moreembodiments of the invention, a logic device (104) is any device thatincludes hardware components (e.g., circuitry) capable of receiving oneor more signals (e.g., 10 signal A (110), TO signal B (112)) from amonitored device (102), holding a state represented by the signals forsome period of time (e.g., a delay period), and outputting the one ormore signals to a controlled device (134).

In one or more embodiments of the invention, the logic device (104)includes functionality to hold a previous state output from a monitoreddevice (102) for a delay period once a state change (i.e., a change inthe one or more signals (e.g., IO signal A (110), IO signal B (112))output from the monitored device) is detected in order to determinewhether the monitored device has experienced an error (e.g., an SEU). Insuch embodiments, the new detected state is not propagated to acontrolled device (134) until the delay period ends without the receiptof an error detection signal (124) output from the monitored device(102). If, on the other hand, an error is detected via receipt of anerror detection signal (124) from a monitored device during a delayperiod, an alert (126) may be sent to a network device processor (128).Although FIG. 1 shows a single logic device (104), a network device mayinclude any number of logic devices, each monitoring any number ofmonitored devices, without departing from the scope of the invention.

In one or more embodiments of the invention, the logic device (104)includes one or more state comparators (114). In one or more embodimentsof the invention, a state comparator (114) is any hardware (e.g.,circuitry) that is operatively connected to a monitored device (102),and includes functionality to receive one or more signals (e.g., IOsignal A (110), IO signal B (112)) from the monitored device (102). Inone or more embodiments of the invention, when any of the one or moresignals (e.g., IO signal A (110), IO signal B (112)) change in value(e.g., transition from 0 to 1, transition from a higher voltage to alower voltage, etc.), then a state change has occurred, and is detectedby the state comparator (114). For example, the state comparator (114)may compare a currently detected state to a previously detected state todetermine if a change has occurred. Although FIG. 1 shows a single statecomparator (114), a network device may include any number of statecomparators without departing from the scope of the invention.

In one or more embodiments of the invention, the state comparator (114)is operatively connected to an initial state change device (106) andincludes functionality to send an enable signal A (116) to the initialstate change device (106). In one or more embodiments of the invention,the initial state change device (106) includes hardware (e.g.,circuitry) and includes functionality to receive one or more signals(e.g., IO signal A (110), IO signal B (112)) from a monitored deviceand, when enable signal A (116) is sent from a state comparator (114),propagate the one or more signals from one or more inputs of the initialstate change device (106) to one or more outputs of the initial statechange device (106).

A non-limiting example of an initial state change device (106) is alatch (i.e., a flip-flop). As used herein, a latch is a circuitcomponent that includes functionality to receive signals at inputs and,when an enable signal is received (e.g., from a state comparator), topropagate the received signals to outputs of the latch. In one or moreembodiments of the invention, the initial state change device (106)receives an enable signal A (116) from a state comparator only after thestate comparator (114) detects a state change from a monitored device(102), thereby causing the initial state change device (106) topropagate the changed state from the one or more inputs of the initialstate change device (106) to the one or more outputs of the initialstate change device (106). Although FIG. 1 shows a single initial statechange device (106), a network device may include any number of initialstate change devices without departing from the scope of the invention.

In one or more embodiments of the invention, the state comparator (114)is also operatively connected to a delay counter (118) and includesfunctionality to cause the delay counter (118) to begin counting a delayperiod when a state change is detected from a monitored device (102), Inone or more embodiments of the invention, a delay counter is anyhardware (e.g., circuitry) capable of measuring (i.e., counting) aperiod of time. The amount of time that a delay counter (118) counts maybe pre-configured (e.g., a function of the circuitry of the delaycounter) and/or configurable by an entity such as a user, other elementof a network device (100), network device software, etc. In one or moreembodiments of the invention, the delay counter (118) includesfunctionality to count a delay period that is similar to or greater thantwice the amount of time that it takes for a monitored device (102) toperform an error check (e.g., a full loop of a CRC of the logic storedin the SRAM of a monitored device). Such a delay period (e.g., 200milliseconds) may adhere to the Nyquist-Shannon sampling theorem.Although FIG. 1 shows a single delay counter (118), a network device(100) may include any number of delay counters without departing fromthe scope of the invention.

In one or more embodiments of the invention, the delay counter (118) isoperatively connected to a validation engine (120), which is alsooperatively connected to a monitored device (102), In one or moreembodiments of the invention, a validation engine (120) is any hardware(e.g., circuitry) capable of receiving an indication from a delaycounter (118) that a delay period has begun and subsequently ended, andto determine if any error detection signal (124) was received from amonitored device (102) during the aforementioned delay period. In one ormore embodiments of the invention; if an error detection signal (124) isreceived from a monitored device (102) during a delay period, thevalidation engine (120) includes functionality to send an alert (126)(e.g., an interrupt) to an appropriate entity, such as, for example, anetwork device processor (128). Although FIG. 1 shows a singlevalidation engine (120), a network device (100) may include any numberof validation engines without departing from the scope of the invention.

In one or more embodiments of the invention, a validation engine (120)is also operatively connected to a state hold device (108) and includesfunctionality to send an enable signal B (122) to the state hold device(108) when a delay period has been counted and passed without thevalidation engine (120) receiving an error detection signal (124) from amonitored device (102). In one or more embodiments of the invention, astate hold device (108) is any device that includes hardware (e.g.,circuitry) and includes functionality to receive one or more signals(e.g., IO signal A (110), IO signal B (112)) from one or more outputs ofan initial state change device (106) and, when enable signal B (122) issent from a validation engine (120), to propagate the one or moresignals from one or more inputs of the state hold device (108) to one ormore outputs of the state hold device (108). A non-limiting example of astate hold device (108) is a second latch (i.e., a flip-flop) (describedabove).

In one or more embodiments of the invention, the state hold device (108)receives an enable signal B (122) from a validation engine (120) onlyafter the validation engine (120) determines that no error detectionsignal (124) was received from a monitored device (102) during a delayperiod (i.e., counted by a delay counter (118)), thereby causing thestate hold device (108) to propagate the changed state from the one ormore inputs of the state hold device (108) to the one or more outputs ofthe state hold device (108). In one or more embodiments of theinvention, the one or more outputs of the state hold device (108) areoperatively connected to one or more controlled devices (134), andpropagating a state change to one or more controlled devices may causethe state or operation of the one or more controlled devices to change(e.g., an LED blinks, a transceiver resets, etc.). In one or moreembodiments of the invention, a state hold device holds a previous statereceived from a monitored device until enable signal B is received.Although FIG. 1 shows a single state hold device, a network device mayinclude any number of state hold devices without departing from thescope of the invention.

While FIG. 1 shows a configuration of components, other configurationsmay be used without departing from the scope of the invention. Forexample, various components may be combined to create a singlecomponent. As another example, the functionality performed by a singlecomponent may be performed by two or more components. Accordingly,embodiments disclosed herein should not be limited to the configurationof components shown in FIG. 1.

FIG. 2 shows a system in accordance with one or more embodiments of theinvention. As shown in FIG. 2, the system includes a network device(200). The network device (200) may include a monitored device (202), alogic device (216), a register device (204), a controlled device (234),a network device processor (228), a network device memory (230), and anetwork device storage (232). The logic device (216) may include a delaycounter (218) and a validation engine (222). The register device (204)may include an initial state change device (206) and a state hold device(212). Each of these components is described below.

In one or more embodiments of the invention, the network device (200),the monitored device (202), the network device processor (228), thenetwork device memory (230), the network device storage (232), and thecontrolled device (234) are substantially similar to like-namedcomponents of FIG. 1, which are described above. These components, toavoid unnecessarily complicating the description of FIG. 2, are notre-described in the description of FIG. 2 except where such componentsmay interact with the elements of the register device (204) and/or thelogic device (216).

In one or more embodiments of the invention, the monitored device (202)is operatively connected to a register device (204), and includesfunctionality to transmit a data signal (208) to an initial state changedevice (206) of the register device (204) based, at least in part, on aclock signal (210). In one or more embodiments of the invention, theinitial state change device (206) includes hardware (e.g., circuitry)and includes functionality to have data shifted in to the initial statechange device (206) via a data signal (208). For example, the initialstate change device (206) may be a shift register that receives a unitof data (e.g., a bit) from a monitored device (202) at each edge of aclock signal (210). In one or more embodiments of the invention, once acertain number of data units e.g., eight bits) have been transferredfrom a monitored device (202) to an initial state change device (206)(e.g., after eight clock cycles of the clock signal (210)), themonitored device (202) may assert a load signal (220) and transfer thereceived data to one or more outputs of the initial state change device(206) (which may be referred to as a state change). A load signal (220),as used herein, is a signal that, when asserted, causes the initialstate change device (206) to transfer its contents the data that wasshifted in) to one or more inputs of a state hold device (212)(described below). As such, a load signal may be referred to as aninitial state change device enable signal or, simply, an enable signal.As shown in the embodiment of FIG. 2, the load signal (220) of FIG. 2 isfirst sent to a delay counter (218) (described below).

In one or more embodiments of the invention, the monitored device (202)is also operatively connected to a logic device (216). In one or moreembodiments of the invention, a logic device includes hardware (e.g.,circuitry) and includes functionality to receive a load signal (220)from a monitored device (202), count a delay period, and determine if anerror detection signal (224) was received from a monitored device (202)during the delay period. The logic device (216) may also includefunctionality to, when an error detection signal (224) is receivedduring a delay period, send an alert (226) (e.g., an interrupt) to anappropriate entity, such as a network device processor (228). A logicdevice (216) may also include functionality to, when an error detectionsignal (224) is not received from a monitored device (202) during adelay period, send an enable signal (214) to a state hold device (212)of the register device (204).

In one or more embodiments of the invention, the logic device (216)includes a delay counter (218). In one or more embodiments of theinvention, a delay counter (218) includes hardware (e.g., circuitry) andincludes functionality to count a delay period. The delay period may bepre-configured and/or configurable (e.g., the delay period may be twicethe time taken by a monitored device to perform one loop through storedlogic to detect possible errors therein). In one or more embodiments ofthe invention, the delay counter (218) is operatively connected to amonitored device (202) and a validation engine (222). In one or moreembodiments of the invention, the delay counter (218) begins counting adelay period when a load signal (220) is received from a monitoreddevice (202), indicating that a state change has occurred (i.e., acertain number of data units have been transferred from the monitoreddevice to an initial state change device (206)). In one or moreembodiments of the invention, the delay counter (218) includesfunctionality to provide an indication to a validation engine (222) thata delay period count has started, and, later, that it has subsequentlyended.

In one or more embodiments of the invention, the logic device (216) alsoincludes a validation engine (222). In one or more embodiments of theinvention, a validation engine (222) includes hardware (e.g.,circuitry), and includes functionality to determine whether an errordetection signal (224) is received during a delay period counted by adelay counter (218). In one or more embodiments of the invention, ifsuch an error detection signal (224) is received, the validation engine(222) includes functionality to send an alert to a network deviceprocessor (228). In one or more embodiments of the invention, if noerror detection signal (224) is received by the validation engine (222)during the delay period, then the validation engine (222) includesfunctionality to send an enable signal (214) to a state hold device(212).

In one or more embodiments of the invention, the register device (204)also includes a state hold device (212). In one or more embodiments ofthe invention, the state hold device (212) is a storage register thatholds the state previously output from a monitored device (202) andreceived via one or more outputs of an initial state change device(206). In one or more embodiments of the invention, one or more inputsof the state hold device (212) are operatively connected to one or moreoutputs of an initial state change device (206), and any signalsreceived from the initial state change device (206) are not propagatedto one or more outputs of the state hold device (212) unless an enablesignal (214) is received from a validation engine (222). In one or moreembodiments of the invention, the one or more outputs of the state holddevice (212) are operatively connected to one or more controlled devices(234), and may control the state and/or operation of the one or morecontrolled devices.

While FIG. 2 shows a configuration of components, other configurationsmay be used without departing from the scope of the invention. Forexample, various components may be combined to create a singlecomponent. As another example, the functionality performed by a singlecomponent may be performed by two or more components. Accordingly,embodiments disclosed herein should not be limited to the configurationof components shown in FIG. 2.

FIG. 3 shows a flowchart in accordance with one or more embodiments ofthe invention. While the various steps in the flowchart are presentedand described sequentially, one of ordinary skill in the art and havingthe benefit of this Detailed Description will appreciate that some orall of the steps may be executed in different orders, may be combined oromitted, and some or all of the steps may be executed in parallel.Furthermore, the steps may be performed actively or passively. Forexample, some steps may be performed using polling or be interruptdriven in accordance with one or more embodiments of the invention. Byway of an example, determination steps may not require a processor toprocess an instruction unless an interrupt is received to signify thatcondition exists in accordance with one or more embodiments of theinvention. As another example, determination steps may be performed byperforming a test, such as checking a data value to test whether thevalue is consistent with the tested condition in accordance with one ormore embodiments of the invention.

FIG. 3 shows a flowchart describing a method for detecting a possibleerror in the stored logic of a monitored device in accordance with oneor more embodiments of the invention.

In Step 300, data is received from a monitored device at an input of aninitial state change device. Data may be received as a signal receivedfrom one or more operative connections between the monitored device andthe initial state change device. As an example, the data may be voltagethat changes to represent a logical high (e.g., a “1”) and a logical low(e.g., a “0”). There may be any number of such operative connections. Asanother example, there may be a data line between the monitored deviceand the initial state change device, and the data may be shifted intothe initial state change device (which may be a shift register) atcertain clock events (e.g., a clock edge) after which a data unit isshifted in to the shift register, with any amount of shifted-in databeing referred to herein as data.

In Step 302, a state change is detected based on receiving the data. Inone or more embodiments of the invention, the state change is detectedby performing a comparison of the data being received by the initialstate change device with previous data received by the initial statechange device, with any change in the received data being a statechange. For example, if there are two input lines to an initial statechange device that are connected to two output lines from a monitoreddevice, each line may, at a given time, be at a logical low (e.g., astate “00” is being received). In the event that one or both of thelines changes to a logical high, such that a state “01”, “10”, or “11”is being received, then a state change has occurred, and is detected,for example, by a state comparator. As another example, if an initialstate change device is a shift register, detection of a state change mayoccur when a certain number of bits e.g., eight) have shifted into theshift register at relevant times based on a clock signal.

In Step 304, based on detecting a change is state in Step 302, an enablesignal is asserted. In one or more embodiments of the invention,assertion of an enable signal causes and/or happens substantially at thesame time as an initial state change device transfers received inputs toone or more outputs. As an example, if the initial state change devicereceives three signal lines from a monitored device at three inputs, andone of the input lines changes, then a state change has occurred. Thedetection of the state change causes the assertion of an enable signalfor the initial state change device, thereby causing the initial statechange device to propagate the three signals from the device inputs tooutputs of the initial state change device. As another example, inembodiments of the invention in which the initial state change device isa shift register, once a certain number of data units have beentransferred to the shift register, the monitored device may assert aload signal (i.e., an enable signal) to a delay counter, and the shiftregister may include functionality to propagate the received data unitsto outputs of the shift register once the certain number have beenreceived and the load signal asserted.

In Step 306, based on detection of the state change, a delay counter istriggered to begin counting a delay period. For example, a statecomparator may determine that a state change has been received from amonitored device, and, in response to the detection, send an indicationto a delay counter to begin counting a delay period. As another example,once a certain number of data units have been transferred to an initialstate change device from a monitored device (e.g., a state change), themonitored device may send a load signal to a delay counter, causing thedelay counter to begin counting a delay period. In one or moreembodiments of the invention, the delay period is a period of time thatis long enough to allow the logic of the monitored device to be checkedfor errors one or more times. For example, in embodiments of theinvention in which a monitored device performs CRCs to determine ofstored logic of the monitored device has any errors, the delay periodmay be twice the time to complete a full CRC for the stored logic.

In Step 308, a determination is made about whether an error detectionsignal was received from a monitored device during the delay periodtriggered in Step 306. For example, in embodiments of the invention inwhich the monitored device is an FPGA with functionality to perform CRCsand assert a CRC signal if an error is detected, a validation engine maymonitor a CRC signal line during the delay period to determine if theCRC signal asserts during the delay period. In one or more embodimentsof the invention, if no error detection signal is received during thedelay period, the process proceeds to Step 310. In one or moreembodiments of the invention, if an error detection signal is receivedduring the delay period, the process proceeds to Step 312.

In Step 310, based on a determination that an error detection signal wasnot received during a delay period, an enable signal is sent to a statehold device. In one or more embodiments of the invention, sending anenable signal to a state hold device causes the state hold device tostop holding a previous state, and instead propagate one or more inputsreceived from an initial state change device to one or more outputs ofthe state hold device so that the state change from the monitored deviceis passed to one or more controlled devices. As an example, if the statehold device is a latch, a latch enable signal may be asserted, causingthe latch to propagate its input to one or more output lines. As anotherexample, if the state hold device is a storage register, a registerenable signal may be asserted, causing the storage register to propagateits input data to the output(s) of the storage register, After Step 310,the process ends.

In Step 312, based on a determination that an error detection signal wasreceived during a delay period, the enable signal is not sent to thestate hold device. In one or more embodiments of the invention, notsending an enable signal to the state hold device causes the state holddevice to continue holding the previous state, and thus, the one or morecontrolled devices connected to the one or more outputs of the statehold device remain in the same state (e.g., LED remains green andsteady). In one or more embodiments of the invention, determining thatan error detection signal was received during the delay period alsocauses an alert to be sent. For example, a validation engine that wasmonitoring to determine if a monitored device asserted a CRC during adelay period may, when the CRC is asserted, send an interrupt to anetwork device processor, which services the interrupt by taking one ormore actions related to the alert/interrupt (e.g., perform a loggingaction, reset/reprogram the monitored device, etc.). After Step 312, theprocess ends.

FIG. 4 shows an example in accordance with one or more embodiments ofthe invention. The following example is for explanatory purposes onlyand not intended to limit the scope of the invention.

Referring to FIG. 4, consider a scenario in which a network device (400)includes an FPGA (402) for controlling a reset function of a networkdevice chip (418). Inserted between the FPGA (402) and the networkdevice chip (418) is a logic device (404). The logic device includes alatch A (406) (i.e., an initial state change device) and a statecomparator (410), both of which are coupled to output lines of the FPGAthat transmit IO signal A (440) and IO signal B (442). The logic device(404) also includes a delay counter (412), a validation engine (420),and a latch B (408) (i.e., a state hold device). The validation engine(420) is operatively connected to latch B (408) and to a network deviceprocessor (428), The network device processor (428) is also operativelyconnected to network device memory (430) and network device storage(432). Outputs of latch B (408) are coupled to inputs of the networkdevice chip (418).

In such a scenario, the FPGA (402) is configured to output two signals(i.e., IO signal A (440) and IO signal B (442)) for controlling thenetwork device chip (418) reset functionality. The FPGA may cause areset of the network device chip (418) when both of the signals are sentas a logical high, referred to hereinafter as a 1, making the outputstate from the FPGA to cause a reset a logical state of 11. At a firsttime, IO signal A (440) and IO signal B (442) are both at a logical low,referred to hereinafter as a 0, making the state output from the FPGA atthe first time a logical state of 00. The logical state of 00 haspreviously been validated (i.e., no CRC signal was received at thevalidation engine from the FPGA for a delay period counted by the delaycounter and started by the state comparator after the state changed to00), and thus the state output from latch B (408) to the network devicechip (418) is the logical state 00, which will not cause the networkdevice chip to reset.

When both signals change to a 1 (i.e., the state is a logical 11), thesignals are propagated to both the state comparator (410) and the twoinput lines of latch A (406). The state comparator (410) determines thatthe state output from the FPGA has changed from a 00 to a 11, which is astate change, Based on detecting the state change, the state comparatorasserts a latch A enable signal (416) that enables latch A (406) to passthe logical 11 state from its two inputs to its two outputs, which arecoupled to the two inputs of latch B (408). Also based on detecting thestate change, the state comparator (410) sends an indication to thedelay counter (412) to begin counting a delay period that is twice theCRC period of the FPGA.

In turn, the delay counter (412) indicates to the validation engine(420) that a count of a delay period has begun. The validation engine(420) thus monitors for a CRC signal (424) that, if asserted, isreceived from the FPGA. During the delay period, the state output fromlatch B (408) to the network device chip remains at logical state 00,meaning state 00 is held (because the latch B enable signal (422) hasnot yet been asserted), even though the state being received at theinputs of latch B (408) has changed to a logical state 11.

If the delay period passes and no CRC signal (424) is received by thevalidation engine (420) from the FPGA (402), then the state change hasbeen validated and the latch B enable signal (422) is asserted, causinglatch B (408) to propagate the logical state 11 to its outputs and,thus, to the network device chip (418), causing the network device chipto reset, which has been validated as an intended action from the FPGA.

On the other hand, if a CRC signal (424) is received during the delayperiod (e.g., because an energetic particle has collided with the SRAMof the FPGA), then the state change cannot be validated, the latch Benable signal (422) is not asserted by the validation engine, and, thus,the state output from latch B remains a logical state 00 and the networkdevice chip is not erroneously reset, Additionally, the validationengine (420) sends an interrupt (426) to the network device processor(428), alerting the network device processor that an error has beendetected for the FPGA. In response, the network device processor maytake any number of actions, such as obtaining the changed state (i.e.,11) from latch A, resetting the FPGA to correct the device logic errorthat was detected, logging the error, etc.

FIG. 5 shows an example in accordance with one or more embodiments ofthe invention. The following example is for explanatory purposes onlyand not intended to limit the scope of the invention.

Referring to FIG. 5, consider a scenario in which a network device (500)includes an FPGA (502) for controlling a reset function of an opticaltransceiver (534). Inserted between the FPGA (502) and the transceiver(534) is a register device (504). The register device includes a shiftregister (506) (i.e., an initial state change device) operativelyconnected to the FPGA (502) and to a storage register (512) (i.e., astate hold device) also included in the register device (504). Outputsof the storage register (512) are coupled to inputs of the transceiver(534). The network device also includes a logic device (516) thatincludes a delay counter (518) and a validation engine (522). The delaycounter (518) is coupled to a load signal (520) output of the FPGA (502)and to the validation engine (522). The validation engine (522) isoperatively connected to storage register (512), to a network deviceprocessor (528), and to a CRC signal (524) output of the FPGA (502). Thenetwork device processor (528) is also operatively connected to networkdevice memory (530) and network device storage (532).

In such a scenario, the FPGA (502) is configured to output a bit to theshift register (506) via a data signal (508) at each edge of a clocksignal (510). Once eight bits have been shifted into the shift register(i.e., a state change has occurred), the FPGA sends a load signal (520)to the delay counter (518). The bits shifted into the shift registerrepresent a state output from the FPGA (502). If the state 10101010 isshifted in and passed to the transceiver via the storage register, thetransceiver resets.

At a first time, the FPGA has previously shifted in a state of 00100101to the shift register. The state 00100101 has previously been validated(i.e., no CRC signal was received at the validation engine from the FPGAfor a delay period counted by the delay counter and started after thestate changed to 00100101 and the load signal was asserted by the FPGA),and thus the state output from the storage register (512) to thetransceiver (534) is the logical state 00100101, which will not causethe transceiver to reset.

At a later time, after eight cycles of the clock signal (510), the state10101010 has been shifted into the shift register (506), which is astate change. Based on the state change, the FPGA asserts a load signal(520) to a delay counter, which starts the delay counter (518) countinga delay period that is twice the CRC period of the FPGA (502).

In turn, the delay counter (518) indicates to the validation engine(522) that a count of a delay period has begun. The validation engine(522) thus monitors for a CRC signal (524) that, if asserted, isreceived from the FPGA (502). During the delay period, the state outputfrom the storage register (512) to the transceiver (534) remains atlogical state 00100101, meaning state 00100101 is held (because thestorage register enable signal (514) has not yet been asserted by thevalidation engine (522)), even though the state being received at theinputs of the storage register (512) has changed to a logical state10101010.

If the delay period passes and no CRC signal (524) is received by thevalidation engine (522) from the FPGA (502), then the state change hasbeen validated and the storage register enable signal (514) is asserted,causing the storage register (512) to propagate the logical state10101010 to its outputs and, thus, to the transceiver (534), causing thetransceiver to reset, which has been validated as an intended actionfrom the FPGA (502).

On the other hand, if a CRC signal (524) is received during the delayperiod (e.g., because an energetic particle has collided with the SRAMof the FPGA), then the state change cannot be validated, the storageregister enable signal (514) is not asserted by the validation engine(522), and, thus, the state output from latch B remains a logical state00100101 and the transceiver is not erroneously reset. Additionally, thevalidation engine (522) sends an interrupt (526) to the network deviceprocessor (528), alerting the network device processor that an error hasbeen detected for the FPGA. In response, the network device processormay take any number of actions, such as obtaining the changed state(i.e., 10101010) from latch A, resetting the FPGA to correct the devicelogic error that was detected, logging the error, etc.

One having ordinary skill in the art, and the benefit of this DetailedDescription, will appreciate that embodiments of the invention will,among other things, help mitigate the effects of SEUs for devices withlogic stored in some form of SEU susceptible memory by providing a hardlogic buffer that maintains a previous state for a delay period whilealso capturing a changed state, with the changed state not beingpropagated to other elements of a network device (e.g., one or morecontrolled devices) unless the detected state change has been validatedby the lack of a received error detection signal for an appropriate tuneperiod (e.g., two times the CRC period of an FPGA). Often, a networkdevice processor receiving an alert based on detection of an errorsignal in a system without a logical buffer as described herein isunable to prevent the propagation of a bad, unknown, and/or unexpectedchanged state to one or more controlled devices given the speed and/ortiming of the signals being sent to a controlled device, and the amountof tune required for the processor to react. Accordingly, in one or moreembodiments of the invention, the prevention of the propagation of abad, unknown, and/or unexpected changed state to one or more controlleddevices by the logical buffer serves to prevent the propagation of suchsignals without relying on or waiting for the network device processorto perform an action.

While the invention has been described with respect to a limited numberof embodiments, those skilled in the art, having benefit of thisdisclosure, will appreciate that other embodiments can be devised whichdo not depart from the scope of the invention as disclosed herein.Accordingly, the scope of the invention should be limited only by theattached claims.

What is claimed is:
 1. A method for handling a single event upset (SEU),the method comprising: receiving, from a monitored device, a first dataat a first input of an initial state change device; detecting, based onreceiving the first data, a first state change; asserting, based ondetecting the first state change, an initial state change device enablesignal; transferring the first data from the first input to a firstoutput of the initial state change device, wherein the first output isoperatively connected to a second input of a state hold device;triggering, based on detecting the first state change, a delay counterto count a delay period; making, by a validation engine, a firstdetermination that the delay period counted by the delay counter hasexpired without receipt of an error detection signal; and based on thefirst determination, asserting a state hold device enable signal toallow the first data to pass from the second input to a second output ofthe state hold device.
 2. The method of claim 1, wherein: the secondoutput is operatively connected to a controlled device, and thecontrolled device performs an action based on receiving the first datafrom the second output.
 3. The method of claim 1, further comprising,after asserting the state hold device enable signal to allow the firstdata to pass from the second input to the second output of the statehold device: receiving, from the monitored device, a second data at thefirst input; detecting, based on receiving second data, a second statechange; asserting, based on detecting the second state change, theinitial state change device enable signal for the initial state changedevice to transfer the second data from the first input to the firstoutput operatively connected to the second input; triggering, based ondetecting the second state change, the delay counter to count the delayperiod; receiving, at the validation engine, while the delay counter iscounting the delay period, the error detection signal; making a seconddetermination, based on receiving the error detection signal, not toassert the state hold device enable signal, causing the second data notto be transferred from the second input to the second output, and thefirst data to be held at the second output; and sending an alert to aprocessor of a network device that that the error detection signal wasreceived.
 4. The method of claim 3, wherein: the second output isoperatively connected to a controlled device, and the controlled deviceremains in a prior state based on not receiving the second data from thesecond output.
 5. The method of claim 3, wherein the error detectionsignal is a cyclic redundancy check (CRC) asserted signal.
 6. The methodof claim 5, wherein a duration of the delay period is based on amultiple of a time for completing a CRC for the monitored device.
 7. Themethod of claim 1, wherein: the initial state change device comprises ashift register, and detecting the first state change comprises detectingthat a quantity of bits have been shifted into the shift register. 8.The method of claim 7, wherein: detecting that the quantity of bits havebeen shifted into the shift register is performed by the monitoreddevice, and the initial state change device enable signal is a loadsignal asserted by the monitored device to the delay counter.
 9. Themethod of claim 1, wherein: the initial state change device comprises alatch, and detecting the first state change comprises detecting, by astate comparator, a state change at a latch input of the latch.
 10. Asystem for handling a single event upset (SEU), the system comprising: amonitored device comprising static random access memory (SRAM)comprising stored logic; an initial state change device operativelyconnected to the monitored device, comprising a first input and a firstoutput, and configured to receive a first data from the monitored deviceat the first input; a state hold device comprising a second input and asecond output, wherein the second input is operatively connected to thefirst output; a delay counter configured to count a delay period; thestate comparator operatively connected to the first input, the initialstate change device enable input of the initial state change device, andthe delay counter, and configured to: detect, based receiving the firstdata, a first state change; assert, based on detecting the first statechange, an initial state change device enable signal for the initialstate change device to transfer the first data from the first input tothe first output; and trigger, based on detecting the first statechange, the delay counter to count the delay period; a validation engineoperatively connected to the monitored device, the delay counter, andthe state hold device, and configured to: make a first determinationthat the delay period counted by the delay counter expired withoutreceipt, by the validation engine, of an error detection signal from themonitored device; and based on the first determination that no errordetection signal was received during the delay period, assert a statehold device enable signal to allow the first data to pass from thesecond input to the second output of the state hold device.
 11. Thesystem of claim 10, further comprising: a controlled device operativelyconnected to the second output and configured to perform an action basedon receiving the first data from the second output.
 12. The system ofclaim 11, wherein: the initial state change device is further configuredto: receive a second data from the monitored device at the first input;and transfer the second data from the first input to the first outputbased on receipt of the initial state change device enable signal fromthe state comparator, the state comparator is further configured to:detect a second state change based on receiving the second data; assert,based on the detection of the second state change, the initial statechange device enable signal; trigger the delay counter to count thedelay period, and the validation engine is further configured to, afterasserting the state hold device enable signal to allow the first data topass from the second input to the second output of the state holddevice: receive, while the delay counter is counting the delay period,the error detection signal from the monitored device; make a seconddetermination, based on receipt of the error detection signal, not toassert the state hold device enable signal, causing the second data notto be transferred from the second input to the second output, and thefirst data to be held at the second output; and send an alert to aprocessor of a network device that the error detection signal wasreceived.
 13. The system of claim 10, wherein the monitored device isone selected from a group of monitored devices consisting of a fieldprogrammable gate array (FPGA) and a complex programmable logic device(CPLD).
 14. The system of claim 13, wherein the error detection signalcomprises a cyclic redundancy check (CRC) assert signal sent by the FPGAto the validation engine.
 15. The system of claim 10, wherein themonitored device is a component of a switch.
 16. The system of claim 10,wherein the initial state change device comprises a first latch and thestate hold device comprises a second latch.
 17. The system of claim 10,wherein the monitored device, the initial state change device, the statehold device, the delay counter, the state comparator, the validationengine, and the controlled device are each included as a part of anetwork device.
 18. A system for handling a single event upset (SEU),the system comprising: a monitored device comprising static randomaccess memory (SRAM) comprising stored logic; an initial state changedevice operatively connected to the monitored device, comprising a firstinput and a first output, and configured to receive a first data fromthe monitored device at the first input; a state hold device comprisinga second input and a second output, wherein the second input isoperatively connected to the first output; a delay counter configuredto: receive a first load signal from the monitored device when a firststate change occurs; and count a delay period after receiving the firstload signal; a validation engine operatively connected to the monitoreddevice, the delay counter, and the state hold device, and configured to:make a first determination that the delay period counted by the delaycounter expired without receipt, by the validation engine, of an errordetection signal from the monitored device; and based on the firstdetermination, assert a state hold device enable signal to allow thefirst data to pass from the second input to the second output of thestate hold device.
 19. The system of claim 18, wherein: the initialstate change device is further configured to: receive a second data fromthe monitored device at the first input; and transfer the second datafrom the first input to the first output, the delay counter is furtherconfigured to: receive a second load signal from the monitored devicewhen a second state change occurs; and count the delay period afterreceiving the second load signal, and the validation engine is furtherconfigured to: receive, while the delay counter is counting the delayperiod, the error detection signal; make a second determination, basedon receipt of the error detection signal, not to assert the state changedevice enable signal, causing the second data not to be transferred fromthe second input to the second output, and the first data to be held atthe second output; and send an alert to a processor of a network devicethat the error detection signal was received.
 20. The system of claim18, wherein the initial state change device comprises a shift registerand the state hold device comprises a storage register.
 21. The systemof claim 20, wherein the monitored device, the initial state changedevice, the state hold device, the delay counter, the state comparator,the validation engine, and the controlled device are each included as apart of a network device.